Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #480 +/- ##
==========================================
- Coverage 89.25% 89.23% -0.02%
==========================================
Files 61 61
Lines 5082 5064 -18
Branches 950 944 -6
==========================================
- Hits 4536 4519 -17
Misses 421 421
+ Partials 125 124 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rkalis
pushed a commit
to CashScript/cashscript-playground
that referenced
this pull request
Dec 3, 2026
Same setup as CashScript/cashscript#480. typescript-eslint relies on TypeScript's JavaScript compiler API, which TypeScript 7 no longer ships, so it blocked the upgrade. - remove eslint, typescript-eslint, eslint-plugin-react-hooks, eslint-plugin-react-refresh and globals - add oxlint and oxfmt, pinned to exact versions (oxfmt is pre-1.0) - .oxlintrc.json keeps the existing rules (rules-of-hooks, exhaustive-deps, only-export-components) with the correctness category off, like #480 - .oxfmtrc.json uses the same options as the cashscript repo - add `format` and `format:check` scripts - TypeScript 6.0 → 7.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rkalis
pushed a commit
to CashScript/cashscript-playground
that referenced
this pull request
Dec 3, 2026
Same setup as CashScript/cashscript#480. typescript-eslint relies on TypeScript's JavaScript compiler API, which TypeScript 7 no longer ships, so it blocked the upgrade. - remove eslint, typescript-eslint, eslint-plugin-react-hooks, eslint-plugin-react-refresh and globals - add oxlint and oxfmt, pinned to exact versions (oxfmt is pre-1.0) - .oxlintrc.json keeps the existing rules (rules-of-hooks, exhaustive-deps, only-export-components) with the correctness category off, like #480 - .oxfmtrc.json uses the same options as the cashscript repo - add `format` and `format:check` scripts - TypeScript 6.0 → 7.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rkalis
pushed a commit
to CashScript/vscode-cashscript
that referenced
this pull request
Dec 3, 2026
Same oxlint/oxfmt setup as CashScript/cashscript#480 and the playground. - add oxlint and oxfmt, pinned to exact versions (oxfmt is pre-1.0) - .oxlintrc.json uses oxlint's default rules, with no-unused-vars configured like the cashscript repo - .oxfmtrc.json uses the same options as the cashscript repo (printWidth 125 instead of prettier's 120 here) - `lint` now runs oxlint (it used to run `prettier --write`); add `format` and `format:check` - TypeScript 5.8 → 7.0. TypeScript 6 made `strict` the default, which enables strictPropertyInitialization; mark the two CompletionProvider fields that are assigned at the start of provideCompletionItems as definitely assigned Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ESLint 8, typescript-eslint 7 and the deprecated airbnb-typescript config are replaced by oxlint for linting and oxfmt for formatting. The lint rules that have an oxlint equivalent and do not need type information carry over. The formatting rules are replaced by oxfmt. No longer enforced: - Type-aware rules (only-throw-error, return-await, dot-notation, no-implied-eval). These can return once the tsconfig no longer uses moduleResolution "node" and baseUrl (#478). - naming-convention and lines-between-class-members, which have no equivalent in oxlint or oxfmt. - max-len as a hard limit. oxfmt wraps code at 125 characters but does not flag long comments or other lines it cannot break. - Style in fixture files, which oxfmt ignores (they are still linted). Refs #303 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Mechanical change: the output of `pnpm format`, no manual edits. Also normalises the CRLF line endings in TransactionBuilder.ts to LF. Refs #303 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Refs #303 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces ESLint with oxlint for linting and adds oxfmt for formatting, as proposed in #303.
Why
eslint-config-airbnb-typescript, and typescript-eslint does not support TypeScript 7.Commits
oxlint1.96.0 andoxfmt0.81.0,.oxlintrc.json,.oxfmtrc.json, andpnpm format/pnpm format:check.pnpm formatand nothing else (92 files). Best reviewed by re-running the command rather than reading the diff. It also convertsTransactionBuilder.tsfrom CRLF to LF..git-blame-ignore-revsentry for commit 2.What changes in enforcement
Carried over (13 rules):
explicit-function-return-type,import/extensions,no-unused-vars,no-unused-expressions,no-shadow,no-throw-literal,default-param-last,no-array-constructor,no-dupe-class-members,no-empty-function,no-loop-func,no-loss-of-precision,no-useless-constructor.Replaced by oxfmt: the 13 formatting rules (
indent,quotes,semi,comma-dangle, spacing).No longer enforced:
only-throw-error,return-await,dot-notation,no-implied-eval). oxlint's type-aware mode rejects our currentmoduleResolution: "node"andbaseUrl, so these can return after ANTLR is blocking the TypeScript upgrade #478.naming-conventionandlines-between-class-members. No equivalent in oxlint or oxfmt.max-lenas a hard limit. oxfmt wraps code at 125 characters but does not flag long comments or lines it cannot break.packages/cashc/test/ast/fixtures.ts).Notes for review
packages/*only.examples/and.github/scriptsare not formatted or checked..git-blame-ignore-revspoints at the hash of commit 2, so this needs a merge commit. After a squash or rebase the hash has to be updated.Verification
pnpm lint,pnpm format:check,pnpm build,pnpm spellcheckandpnpm testpass locally (78 + 636 + 230 tests). The reformat commit was checked to be reproducible frompnpm formatand to leave the TypeScript AST and all comments unchanged.Possible follow-ups for what is no longer enforced
Tried on a scratch copy of this branch:
moduleResolution: "bundler",baseUrldropped),oxlint --type-awareruns throughoxlint-tsgolint, and all four rules pass on the current code.import/extensionsalready covers the.jsextension check thatbundlergives up.lines-between-class-membersandmax-len: possible, but probably not worth it. Both work through oxlint's ESLint plugin support (jsPlugins, still alpha) with@stylistic/eslint-plugin, but that bringseslintback as a peer dependency. With oxfmt wrapping code,max-lenwould only catch long comments.naming-convention: accepted. It cannot run throughjsPlugins, because typescript-eslint's rule always asks for parser services.Refs #303
🤖 Generated with Claude Code